from sys import *
a = open(argv[1], "w+b")
a.truncate(0)
a.truncate(int(argv[2]))
a.close()
